package com.yun2.bms.dao;

import com.yun2.bms.model.Category;

import java.util.List;

/**
 * author: youli
 * qq: 27855162@qq.com
 * date: 2020/5/25
 */

public interface ICategoryDao {
    List<Category> getAll();

    int add(Category category);

    boolean isCategoryNameUnique(String categoryName);

    boolean isCategoryNameUnique(Integer id, String categoryName);

    int edit(Category category);

    int delete(String ids);

    List<Category> getAllByCategoryName(String categoryName);

    Category get(int id);


}
